package cn.com.api.service.impl;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mysql.jdbc.log.Log;

import cn.com.api.entity.U_article;
import cn.com.api.entity.U_article_resource;
import cn.com.api.mapper.U_article_cateMapper;
import cn.com.api.mapper.U_article_resourceMapper;
import cn.com.api.service.U_article_resourceService;
import cn.com.util.*;

@Service
public class U_article_resourceServiceImpl implements U_article_resourceService {

	@Autowired
	private U_article_resourceMapper article_resourceMapper;

	public void insertU_article_resource(U_article_resource u_article_resource) {
		article_resourceMapper.insertU_article_resource(u_article_resource);
	}

	public List<U_article_resource> getArticleResourcesByArticleID(String article_id) {
		return article_resourceMapper.getArticleResourcesByArticleID(article_id);
	}

	public void delarticle_resource(String article_id) {
		article_resourceMapper.delarticle_resource(article_id);
	}
}
